package com.dianzi.certification.service;

import com.dianzi.certification.entity.CertAttachment;
import com.dianzi.certification.vo.R;
import org.springframework.http.ResponseEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpSession;

public interface CertAttachmentService {
    R<Integer> upload(MultipartFile multiFile, HttpSession session);

    R<CertAttachment> getFileInfo(Integer certStage, Integer attachmentId, Integer userId);

    ResponseEntity<byte[]> fileDownload(Integer certStage, Integer attachmentId, Integer userId, HttpSession session);

    ResponseEntity<byte[]> fileDownloadAdmin(Integer attachmentId, HttpSession session);
}
